package cn.wolfcode.service.impl;

import cn.wolfcode.domian.Result;
import cn.wolfcode.domian.dept;
import cn.wolfcode.mapper.deptMapper;
import cn.wolfcode.service.deptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class deptServiceImpl implements deptService {
    @Autowired
    private deptMapper mapper;
    @Override
    public List<dept> list() {
       return mapper.list();
    }

    @Override
    public void delete(Long id) {
         mapper.delete(id);
    }

    @Override
    public void add(dept dept) {
         mapper.add(dept);
    }

    @Override
    public dept getById(Long id) {
        return mapper.getById(id);
    }

    @Override
    public void update(dept dept) {
         mapper.update(dept);
    }
}
